﻿@model Survey.Common.Models.Services.HowTos.IComplexEntityModel

@AddControls(
    new Fieldset("w32p mh100 ", "Byte")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ByteValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ByteValueTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.SByteValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.SByteValueTo),
        }
    },
    new Fieldset("w32p mh100 ", "ByteNullable")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ByteValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ByteValueNullableTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.SByteValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.SByteValueNullableTo),
        }
    },
    new Fieldset("w32p mh100 ", "Decimal")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DecimalValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DecimalValueTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DecimalValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DecimalValueNullableTo),
        }
    })
@AddControls(
    new Fieldset("w32p mh50 ", "Short")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ShortValueFrom)
                .AsDefinitionListItem("From"),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ShortValueTo)
                .AsDefinitionListItem("To"),
        }
    },
    new Fieldset("w32p mh50 ", "UShort")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UShortValueFrom)
                .AsDefinitionListItem("From"),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UShortValueTo)
                .AsDefinitionListItem("To"),
        }
    },
    new Fieldset("w32p mh50 ", "Short Null")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ShortValueNullableFrom)
                .AsDefinitionListItem("From"),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ShortValueNullableTo)
                .AsDefinitionListItem("To"),
        }
    },
    new Fieldset("w32p mh50 ", "UShort Null")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UShortValueNullableFrom)
                .AsDefinitionListItem("From"),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UShortValueNullableTo)
                .AsDefinitionListItem("To"),
        }
    },
    new Fieldset("w32p mh50 ", "Double")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DoubleValueFrom)
                .AsDefinitionListItem("From"),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DoubleValueTo)
                .AsDefinitionListItem("To"),
        }
    },
    new Fieldset("w32p mh50 ", "Double Null")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DoubleValueNullableFrom)
                .AsDefinitionListItem("From"),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.DoubleValueNullableTo)
                .AsDefinitionListItem("To"),
        }
    })
@AddControls(
    new Fieldset("w32p mh100 ", "Int")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.IntValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.IntValueTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UIntValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UIntValueTo),
        }
    },
    new Fieldset("w32p mh100 ", "Int Null")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.IntValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.IntValueNullableTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UIntValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.UIntValueNullableTo),
        }
    },
    new Fieldset("w32p mh100 ", "Float")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.FloatValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.FloatValueTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.FloatValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.FloatValueNullableTo),
        }
    })

@AddControls(
    new Fieldset("w32p mh100 ", "Long")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.LongValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.LongValueTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ULongValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ULongValueTo),
        }
    },
    new Fieldset("w32p mh100 ", "Long Null")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.LongValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.LongValueNullableTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ULongValueNullableFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ULongValueNullableTo),
        }
    },
    new Fieldset("w32p mh100 ", "DateTime")
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ValidFromFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ValidFromTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ValidToFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.ValidToTo),
        }
    })